#include "widget.h"
#include<QDebug>
#include<QKeyEvent>

Widget::Widget(QWidget *parent)
    : QWidget(parent)
{
}

Widget::~Widget()
{
}


void Widget::keyPressEvent(QKeyEvent *event){
    qDebug() << "press "<< event->key();
}

void Widget::keyReleaseEvent(QKeyEvent *event){
    qDebug() << "release "<< event->key();
}
